/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.zp;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

/**
 * 招聘计划实体类
 */
@Data
@TableName("zp_plan")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ZpPlan对象", description = "招聘计划")
public class ZpPlan extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 单据编码
	*/
		@ApiModelProperty(value = "单据编码")
		private String code;
	/**
	* 填报单位
	*/
		@ApiModelProperty(value = "填报单位")
		private String reportCompanyId;
	/**
	* 填报时间
	*/
		@ApiModelProperty(value = "填报时间")
		@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
		@JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
		private Date reportTime;
	/**
	 * 招聘计划名称
	 */
	@ApiModelProperty(value = "招聘计划名称")
	private String hirePlanName;
	/**
	 * 招聘职务
	 */
	@ApiModelProperty(value = "招聘职务")
	private String hirePosition;
	/**
	 * 招聘人数
	 */
	@ApiModelProperty(value = "招聘人数")
	private Integer hireNumber;
	/**
	 * 招聘资格要求
	 */
	@ApiModelProperty(value = "招聘资格要求")
	private String hireRequire;
	/**
	 * 招聘开始时间
	 */
	@ApiModelProperty(value = "招聘开始时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
	private Date hireBeginTime;
	/**
	 * 招聘截至时间
	 */
	@ApiModelProperty(value = "招聘截至时间")
	@DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
	@JsonFormat(pattern = DateUtil.PATTERN_DATE, timezone = "Asia/Shanghai")
	private Date hireEndTime;
	/**
	 * 招聘渠道
	 */
	@ApiModelProperty(value = "招聘渠道")
	private String hireChannel;

	/**
	* 审批人
	*/
		@ApiModelProperty(value = "审批人")
		private String approvedUser;
	/**
	* 审批时间
	*/
		@ApiModelProperty(value = "审批时间")
		private Date approvedTime;
	/**
	* 单据类型
	*/
		@ApiModelProperty(value = "单据类型")
		private String formType;

	@TableField(exist = false)
	@ApiModelProperty(value = "附件")
	private List<HashMap> docList;

	@ApiModelProperty(value = "附件ids")
	@TableField(exist = false)
	private String attachIds;

	@ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
	private String dataSource;

	@ApiModelProperty(value = "数据来源id", required = true)
	private String dataSourceId;
}
